<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="shortcut icon" href="/theme/images/favicon.ico" type="image/x-icon" />
<title><?php echo $head_title ; ?></title>
<?php if($keywords): ?>
<meta name="keywords" content="<?php echo $keywords ; ?>">
<?php endif; ?>
<?php if($description): ?>
<meta name="description" content="<?php echo $description ; ?>">
<?php endif; ?>
<link href="<?php echo $stylesheet; ?>style.css" type="text/css" rel="stylesheet">
</head>
<body>
<div id="head">
<a href="/" id="logoLink" title="盘享网"></a>
<div id="scbar" class="cl ">
<form id="scbar_form" method="post" autocomplete="off" action="/search" target="_blank">
	<input type="hidden" name="mod" id="scbar_mod" value="forum">
	<input type="hidden" name="formhash" value="6a547412">
	<table cellspacing="0" cellpadding="0" class="tt">
		<tbody><tr>
		<td class="scbar_txt_td"><input type="text" name="srchtxt" id="scbar_txt" value="" autocomplete="off" class=" xg1" placeholder="请输入搜索内容"></td>
		<td class="scbar_btn_td"><button type="submit" name="searchsubmit" id="scbar_btn" sc="1" class="pn pnc" value="true"></button></td>
		</tr>
		</tbody>
	</table>
</form>
</div>

</div>
<div id="top">
	<div style="background: #0066cc;">
	<?php 
		$current_page = $_SERVER['REQUEST_URI'] ;
		if(strlen($current_page) > 2 && strpos($current_page,'lists')){
			//$url_query = explode('-',$current_page) ;
			//$tid =  !empty($url_query[1])?$url_query[1]:0 ;
			//$pid = !empty($url_query[2])?current(explode('.',$url_query[2])):0 ;
			$page = array('index-0','index-1','index-2','index-3','index-4','index-6','index-7','index-8') ;
			foreach($page as $p){
				if(strpos($current_page,$p))
					$class[$p] = 'class="current"' ;
				else
					$class[$p] = '' ;
			}
			$class['home'] = '' ;
		}else{
			$class['home'] = 'class="current"' ;
			$page = array('index-0','index-1','index-2','index-3','index-4','index-6','index-7','index-8') ;
			foreach($page as $p){
					$class[$p] = '' ;
			}
		}
	?>
		<div id="nav">
			<ul>
				<li <?php echo $class['home']; ?>><?php echo anchor('', '网站首页') ?></li>
				<li <?php echo $class['index-0']; ?>><?php echo anchor('lists/index-0', '综合资源') ?></li>
				<li <?php echo $class['index-1']; ?>><?php echo anchor('lists/index-1', '视频') ?></li>
				<li <?php echo $class['index-2']; ?>><?php echo anchor('lists/index-2', '音乐') ?></li>
				<li <?php echo $class['index-3']; ?>><?php echo anchor('lists/index-3', '图片') ?></li>
				<li <?php echo $class['index-4']; ?>><?php echo anchor('lists/index-4', '文档') ?></li>
				<li <?php echo $class['index-7']; ?>><?php echo anchor('lists/index-7', '专辑') ?></li>
				<li <?php echo $class['index-6']; ?>><?php echo anchor('lists/index-6', '其他') ?></li>
				<li <?php echo $class['index-8']; ?>><?php echo anchor('lists/index-8', '福利') ?></li>
				<li style="float:right;background: #177BF5"><?php echo anchor('http://bbs.pshare.cc/', '论坛','style="color:#fff;padding: 0 25px;"') ?></li>
			</ul>
		</div>
	</div>
</div>
<div id="sosoad"></div>